<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="客户收款记录" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doShow(id){
		var url="/finance/ReceiveBillEdit.ihtm?id="+id+"&alert_type=NONE";
		ShowIframe("收款单",url,1024,500,"refreshWin()",900,600);
	}
	function refreshWin(){
		if(popRetVal!=null){
			window.location=window.location;
		}
	}
	function doJump(pageIndex){
		if(window.event.keyCode==13){
			doGo(pageIndex);
		}
	}
	function doGo(pageIndex){
		window.location="/finance/ReceiveBillListForEstablishment.ihtm?id=${id}&current_page="+pageIndex;
	}
</script>
</head>
<body oncontextmenu="return false" class="sheet" style="text-align:center;">
<div class="sheet-main" style="width:860px;text-align:left;margin:auto;">
	<div class="sheet-top">
		<div class="content">
		  <h2>客户收款记录</h2>
		  <p>客户名称：${est.estName}</p>
		</div>
	</div>
	  <div class="sheet-list">
		  <div class="cue-info">
			<span>收款汇总（不包括预付款）：${costTotal}元</span>
	      </div>
			  <div class="table-list">
			     <table width="100%" align="center">      
	 					<tr>	
							<th width="20%">收款日期</th>
							<th width="30%">收款单号</th>
							<th width="15%">经手人</th>
							<th width="12%">金额（元）</th>
							<th width="15%">状态</th>
							<th width="8%">操作</th>
						</tr>
						<c:forEach var="item" items="${qr.list}">
						<tr class="ListTr">
							<td class="ListTd"><fmt:formatDate value="${item.receiveDate}" pattern="yyyy-MM-dd"/></td>
							<td class="ListTd">${item.billCode}</td>
							<td class="ListTd">${item.managerName}</td>
							<td class="ListTd">${item.cost}</td>
							<td class="ListTd">
								<c:if test="${item.examined=='Y'}">已审核</c:if>
								<c:if test="${item.examined=='N'}">未审核</c:if>
							</td>
							<td class="ListTd">
								<a href="javascript:doShow('${item.id}');">查看</a>
							</td>
						</tr>
						</c:forEach>
				   </table>
				   <%@include file="../inc/Pages.jsp"%>
			  </div>
			</div>
</div>						
</body>
</html>